//
//  PrivacyView.swift
//  jiahui
//
//  Created by 3tee on 2024/12/4.
//

import UIKit

class PrivacyView: UIView {

    @IBOutlet weak var privacyTxtView: UITextView!

    
   class func loadXib() -> PrivacyView{
        let view = Bundle.main.loadNibNamed("PrivacyView", owner: self)?.first as? PrivacyView
       return view!
    }
    
    @IBAction func dismissClick(_ sender: UIButton) {
        UserDefaults.standard.setValue(true, forKey: Constant.key_firstInstall)
        UserDefaults.standard.synchronize()
        self.removeFromSuperview()
    }
    
    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        //self.removeFromSuperview()
    }
    
}
